<div class="panel panel-default">
    <div class="panel-body panel-body-nopadding">

        <form class="form-horizontal form-bordered" method="post" enctype="multipart/form-data">

            <div class="form-group">
                <label class="col-sm-3 control-label">模板名称</label>
                <div class="col-sm-6">
                    <input type="text" placeholder="模板名称" class="form-control" name="title" value="{$templateInfo.title}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">模板标识</label>
                <div class="col-sm-6">
                    <input type="text" placeholder="模板路径" class="form-control" name="code" value="{$templateInfo.code}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label" for="disabledinput">模板封面</label>
                <div class="col-sm-6">
                    {:W('image/upload',array('data'=>array('name'=>'cover','url'=>imageUrl($templateInfo['cover']),'width'=>200,'height'=>150)))}
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">模板配置</label>
                <div class="col-sm-6">
                    <textarea class="form-control" name="config" rows="8">{$templateInfo.config}</textarea>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">状态</label>
                <div class="col-sm-6">
                    <div class="radio">
                        <label><input type="radio" name="status" value="1" <eq name="templateInfo.status" value="1">checked</eq>> 启用</label> &nbsp;&nbsp;&nbsp;
                        <label><input type="radio" name="status" value="0" <eq name="templateInfo.status" value="0">checked</eq>> 禁用</label>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label"></label>
                <div class="col-sm-2">
                    <input type="hidden" name="id" value="{$templateInfo.id}">
                    <input type="submit" class="btn btn-primary" value=" 提 交 " > &nbsp;
                    <a href="{:U('/template')}" class="btn btn-default"> 列 表 </a>
                </div>
            </div>
        </form>

    </div>
</div>
